Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/diondokter/at-commands
/ functions
Functions
70 in github.com/diondokter/at-commands
⨍
Functions
70
◇
Types & classes
12
↓ 24 callers
Method
expect_identifier
Tries reading an identifier
src/parser.rs:50
↓ 20 callers
Method
tup_cat
(self, c: C)
src/tuple_concat.rs:10
↓ 18 callers
Method
try_append_data
Tries to append data to the buffer. If it won't fit, it silently fails and won't copy the data. The index field is incremented no matter what.
src/builder.rs:130
↓ 15 callers
Method
finish
Finish parsing the command and get the results
src/parser.rs:326
↓ 14 callers
Method
expect_int_parameter
Tries reading an int parameter
src/parser.rs:337
↓ 14 callers
Method
trim_space
Moves the internal buffer index over the next bit of space characters, if any
src/parser.rs:108
↓ 13 callers
Method
named
Set the name of the command.
src/builder.rs:153
↓ 12 callers
Method
expect_optional_int_parameter
Tries reading an int parameter
src/parser.rs:473
↓ 11 callers
Method
with_int_parameter
Add an integer parameter.
src/builder.rs:167
↓ 10 callers
Method
finish
Finishes the builder. When Ok, it returns a slice with the built command. The slice points to the same memory as the buffer, but is only as long as i
src/builder.rs:239
↓ 8 callers
Method
expect_optional_identifier
Tries reading an optional identifier.
src/parser.rs:73
↓ 8 callers
Method
trim_whitespace
Moves the internal buffer index over the next byte which is not a whitespace. The white space is defined in [core::primitive::u8::is_ascii_whitespace]
src/parser.rs:127
↓ 7 callers
Method
expect_string_parameter
Tries reading a string parameter
src/parser.rs:371
↓ 6 callers
Method
expect_optional_string_parameter
Tries reading a string parameter
src/parser.rs:497
↓ 6 callers
Method
with_empty_parameter
Add a comma, representing an unset optional parameter.
src/builder.rs:203
↓ 4 callers
Method
expect_raw_string_parameter
Tries reading a raw string parameter (non-quoted string separated by commas)
src/parser.rs:435
↓ 4 callers
Method
finish_with
Finishes the builder. With the terminator variable, you can decide how to end the command. Normally this is `\r\n`. ```rust use at_commands::builder
src/builder.rs:268
↓ 4 callers
Function
get_ascii
Helper function that given a byte returns the corresponding ASCII nibble (4 bytes) for the given [byte]. [byte] must be between 0 and 15 inclusive
src/formatter.rs:88
↓ 2 callers
Function
parse_byte_to_hex
Given a byte returns a byte slice which contains the ASCII hex representation.
src/formatter.rs:99
↓ 2 callers
Method
parse_int_parameter
(&self)
src/parser.rs:207
↓ 2 callers
Method
parse_raw_string
(&self)
src/parser.rs:275
↓ 2 callers
Method
parse_raw_string_parameter
(&self)
src/parser.rs:293
↓ 2 callers
Method
parse_string_parameter
(&self)
src/parser.rs:247
↓ 2 callers
Method
with_optional_int_parameter
Add an optional integer parameter.
src/builder.rs:187
↓ 2 callers
Method
with_string_parameter
Add a string parameter
src/builder.rs:178
↓ 1 callers
Method
find_end_of_int_parameter
Finds the index of the character after the int parameter or the end of the data.
src/parser.rs:144
↓ 1 callers
Method
find_end_of_raw_string
Finds the index of the control character after the non-quoted string or the end of the data.
src/parser.rs:182
↓ 1 callers
Method
find_end_of_raw_string_parameter
Finds the index of the character after the raw string parameter (comma or end of data).
src/parser.rs:198
↓ 1 callers
Method
find_end_of_string_parameter
Finds the index of the character after the string parameter or the end of the data.
src/parser.rs:161
↓ 1 callers
Function
parse_int
Parses an int
src/formatter.rs:54
↓ 1 callers
Method
with_optional_string_parameter
Add an optional string parameter.
src/builder.rs:195
↓ 1 callers
Method
with_raw_parameter
Add an unformatted parameter
src/builder.rs:209
↓ 1 callers
Method
with_rax_hex_parameter
Add the given value to the array using the hex format for the bytes
src/builder.rs:216
↓ 1 callers
Function
write_int
Writes ascii bytes to the buffer to represent the given int value. Returns the slice of the buffer that was written to. It can be used as a value or
src/formatter.rs:11
Method
create_execute
Creates a builder for an test execute. The given buffer is used to build the command in and must be big enough to contain it.
src/builder.rs:108
Method
create_query
Creates a builder for a query command. The given buffer is used to build the command in and must be big enough to contain it.
src/builder.rs:68
Method
create_set
Creates a builder for a set command. The given buffer is used to build the command in and must be big enough to contain it.
src/builder.rs:88
Method
create_test
Creates a builder for a test command. The given buffer is used to build the command in and must be big enough to contain it.
src/builder.rs:48
Method
expect_optional_raw_string
Tries reading a non-parameter, non-quoted string
src/parser.rs:519
Method
expect_optional_raw_string_parameter
Tries reading an optional raw string parameter (non-quoted string separated by commas)
src/parser.rs:541
Method
expect_raw_string
Tries reading a non-parameter, non-quoted string
src/parser.rs:403
Method
parse
Start parsing the command
src/parser.rs:39
Function
raw_string_parameters_includes_non_ascii_characters
()
src/parser.rs:761
Function
string_param_at_end
()
src/parser.rs:619
Function
test_buffer_exact_size
()
src/builder.rs:394
Function
test_buffer_too_short
()
src/builder.rs:381
Function
test_byte_to_hex
()
src/formatter.rs:141
Function
test_byte_to_hex_invalid
()
src/formatter.rs:152
Function
test_command
()
src/builder.rs:330
Function
test_execute
()
src/builder.rs:370
Function
test_hex_parameter
()
src/builder.rs:490
Function
test_ok
()
src/parser.rs:575
Function
test_optional
()
src/builder.rs:434
Function
test_optional_identifier
()
src/parser.rs:680
Function
test_optional_identifier_multiple_cases
()
src/parser.rs:720
Function
test_optional_int_parameter_all_present
()
src/parser.rs:632
Function
test_optional_int_parameter_end_not_present
()
src/parser.rs:664
Function
test_optional_int_parameter_middle_not_present
()
src/parser.rs:648
Function
test_parse_byte_to_hex
()
src/formatter.rs:157
Function
test_parse_int
()
src/formatter.rs:124
Function
test_positive_int_param
()
src/parser.rs:591
Function
test_query
()
src/builder.rs:341
Function
test_raw_parameter
()
src/builder.rs:478
Function
test_raw_string_parameter
()
src/parser.rs:742
Function
test_set
()
src/builder.rs:352
Function
test_terminator
()
src/builder.rs:423
Function
test_trim_whitespaces
()
src/parser.rs:780
Function
test_trim_whitespaces_no_whitespace
()
src/parser.rs:802
Function
test_whitespace
()
src/parser.rs:603
Function
test_write_int
()
src/formatter.rs:111