MCPcopy Create free account

hub / github.com/Nike-Inc/aws-greengrass-core-sdk-rust / functions

Functions180 in github.com/Nike-Inc/aws-greengrass-core-sdk-rust

↓ 13 callersMethodclone
(&self)
src/shadow.rs:234
↓ 11 callersMethodpublish
(&self, response: &Response<T>)
examples/shadow.rs:189
↓ 9 callersMethodpush
Push new call information to the internal RefCell
src/lib.rs:136
↓ 9 callersFunctionreset_test_state
()
src/bindings.rs:71
↓ 8 callersMethodinit
(self)
src/lib.rs:62
↓ 8 callersMethodwith_code
(self, code: u16)
examples/shadow.rs:238
↓ 7 callersFunctioninit_log
Initializes the Greengrass Logger with the specified run level # Examples ```example2018 use log::LogLevel; use aws_greengrass_core_rust::log as gglo
src/log.rs:46
↓ 7 callersMethodwith_runtime
Initialize the greengrass with the specified runtime object. This must be called if you want to provide a Runtime with a [`handler::Handler`]. ```ed
src/lib.rs:82
↓ 6 callersMethodwith_handler
Provide a handler. If no handler is provided the runtime will register a no-op handler ```rust use aws_greengrass_core_rust::handler::{Handler, Lambd
src/runtime.rs:121
↓ 6 callersMethodwith_message
(self, message: Option<String>)
examples/shadow.rs:242
↓ 4 callersMethodclone
(&self)
src/lambda.rs:373
↓ 4 callersMethodfor_secret_id
Creates a new SecretRequestBuilder using the specified secret_id `secret_id` - The full arn or simple name of the secret
src/secret.rs:75
↓ 4 callersMethodrequest
(&self)
src/secret.rs:130
↓ 4 callersMethodsend_response
(&self, result: Result<&[u8], &str>)
src/lambda.rs:124
↓ 3 callersMethodhandle_error
(&self, err: &GGError)
examples/shadow.rs:171
↓ 3 callersFunctionread_response_data
Reads the response data from the gg_request_reqd call
src/request.rs:230
↓ 3 callersFunctiontest_response
()
src/secret.rs:283
↓ 3 callersMethodwith_runtime_option
Provide a non-default runtime option
src/runtime.rs:98
↓ 2 callersFunctionbuild_context
Converts the c context to our rust native context
src/runtime.rs:144
↓ 2 callersMethoddelete_thing_shadow
(&self, thing_name: &str)
src/shadow.rs:119
↓ 2 callersMethoddetermine_error
If the response is an error, return it as Some(GGError) None if it isn't an error
src/request.rs:130
↓ 2 callersFunctiongg_publish_options_free
(opts: gg_publish_options)
src/bindings.rs:464
↓ 2 callersFunctioninvoke
( option: &InvokeOptions<C>, invoke_type: InvokeType, payload: &Option<P>, )
src/lambda.rs:245
↓ 2 callersMethodinvoke_sync
( &self, option: InvokeOptions<C>, payload: Option<P>, )
src/lambda.rs:82
↓ 2 callersMethodpublish
Allows publishing a message of anything that implements AsRef<[u8]> to be published
src/iotdata.rs:103
↓ 2 callersMethodpublish_json
Publish anything that is a deserializable serde object
src/iotdata.rs:110
↓ 2 callersMethodpublish_raw
(&self, topic: &str, buffer: &[u8], read: usize)
src/iotdata.rs:117
↓ 2 callersMethodupdate_thing_shadow
(&self, thing_name: &str, doc: &T)
src/shadow.rs:82
↓ 2 callersMethodwith_body
(self, body: Option<Box<T>>)
examples/shadow.rs:246
↓ 2 callersMethodwith_mocks
(self, mocks: Rc<MockHolder>)
src/secret.rs:87
↓ 2 callersMethodwith_request_outputs
(self, request_outputs: Vec<GGResult<Option<Secret>>>)
src/secret.rs:210
↓ 1 callersMethodas_c_invoke_type
(&self)
src/lambda.rs:237
↓ 1 callersMethodas_ioerror
(self)
src/error.rs:80
↓ 1 callersMethodas_opt
Converts to the option required by the runtime api
src/runtime.rs:47
↓ 1 callersFunctionbuild_invoke_options
(req: &InvokeRequest)
examples/invoker.rs:80
↓ 1 callersMethodclone
(&self)
src/iotdata.rs:280
↓ 1 callersMethoddo_stuff_with_thing
(&self, body: &[u8])
examples/shadow.rs:79
↓ 1 callersMethodenabled
(&self, _: &Metadata)
src/log.rs:24
↓ 1 callersFunctiongg_global_init
(opt: u32)
src/bindings.rs:155
↓ 1 callersFunctiongg_lambda_handler_read
( buffer: *mut ::std::os::raw::c_void, buffer_size: usize, amount_read: *mut usize,
src/bindings.rs:283
↓ 1 callersFunctiongg_lambda_handler_write_error
( error_message: *const ::std::os::raw::c_char, )
src/bindings.rs:330
↓ 1 callersFunctiongg_lambda_handler_write_response
( response: *const ::std::os::raw::c_void, response_size: usize, )
src/bindings.rs:317
↓ 1 callersFunctiongg_log
( level: gg_log_level, format: *const ::std::os::raw::c_char, )
src/bindings.rs:174
↓ 1 callersFunctiongg_publish_options_init
(opts: *mut gg_publish_options)
src/bindings.rs:456
↓ 1 callersFunctiongg_publish_options_set_queue_full_policy
( opts: gg_publish_options, policy: gg_queue_full_policy_options, )
src/bindings.rs:472
↓ 1 callersFunctiongg_request_init
(ggreq: *mut gg_request)
src/bindings.rs:186
↓ 1 callersFunctiongg_request_read
( ggreq: gg_request, buffer: *mut ::std::os::raw::c_void, buffer_size: usize,
src/bindings.rs:208
↓ 1 callersFunctiongg_runtime_start
(handler: gg_lambda_handler, opt: u32)
src/bindings.rs:252
↓ 1 callersMethodhandle
(&self, ctx: LambdaContext)
src/runtime.rs:257
↓ 1 callersMethodhandle_command
(&self, c: &Command)
examples/shadow.rs:91
↓ 1 callersMethodhandle_delete
(&self, command: &Command)
examples/shadow.rs:156
↓ 1 callersMethodhandle_get
(&self, command: &Command)
examples/shadow.rs:102
↓ 1 callersMethodhandle_update
(&self, command: &Command)
examples/shadow.rs:127
↓ 1 callersFunctionhandler_read_message
Wraps the C gg_lambda_handler_read call
src/runtime.rs:158
↓ 1 callersMethodinto
(self)
src/error.rs:140
↓ 1 callersFunctioninvoke
(event: &[u8])
examples/invoker.rs:62
↓ 1 callersMethodinvoke_async
( &self, option: InvokeOptions<C>, payload: Option<P>, )
src/lambda.rs:112
↓ 1 callersMethodis_error
Returns true if the request status is anything other than GGRequestStatus::Success
src/request.rs:101
↓ 1 callersMethodparse_response
(&self, response: &[u8])
src/secret.rs:138
↓ 1 callersFunctionpublish
(bytes: &[u8])
examples/longlived.rs:58
↓ 1 callersMethodpublish_internal
Raw publish method that wraps gg_request_init, gg_publish
src/iotdata.rs:159
↓ 1 callersMethodpublish_with_options
This wraps publish_internal and will set any publish options if publish options were specified The primary reason this is a separate function from pub
src/iotdata.rs:124
↓ 1 callersFunctionread_secret
Fetch the specified secrete from the green grass secret store
src/secret.rs:159
↓ 1 callersFunctionread_thing_shadow
(thing_name: &str)
src/shadow.rs:191
↓ 1 callersMethodsend
Performs a send with CHANNEL and coerces the error type
src/runtime.rs:195
↓ 1 callersFunctionsend_to_handler
Sets up the GG_LAMBDA_HANDLER_READ_BUFFER and calls the registered c handler
src/bindings.rs:259
↓ 1 callersMethodserialize_customer_context
(&self)
src/lambda.rs:48
↓ 1 callersMethodstart
Start the green grass core runtime
src/runtime.rs:73
↓ 1 callersFunctionto_gg_log
Converts a [`log::Record`] to a c log entry and sends it to gg_log
src/log.rs:52
↓ 1 callersFunctionto_gg_log_level
Coerces a [`log::Level`] into a green grass log level
src/log.rs:64
↓ 1 callersMethodto_queue_full_c
(&self)
src/iotdata.rs:39
↓ 1 callersMethodwith_mocks
(self, mocks: MockHolder)
src/iotdata.rs:227
↓ 1 callersMethodwith_publish_options
(self, publish_options: Option<PublishOptions>)
src/iotdata.rs:198
↓ 1 callersMethodwith_publish_raw_outputs
(self, publish_raw_outputs: Vec<GGResult<()>>)
src/iotdata.rs:260
↓ 1 callersMethodwith_queue_full_policy
Define a custom policy when publishing from this client
src/iotdata.rs:55
↓ 1 callersMethodwith_secret_string
(self, secret_string: Option<String>)
src/secret.rs:47
↓ 1 callersFunctionwrite_lambda_err_response
(err_msg: &str)
src/lambda.rs:298
↓ 1 callersFunctionwrite_lambda_response
(buffer: &[u8])
src/lambda.rs:292
Methodcalls
Return all the calls made
src/lib.rs:141
Methoddefault
()
src/iotdata.rs:61
Methoddefault
()
src/shadow.rs:183
Methoddefault
()
src/lib.rs:89
Methoddefault
()
src/secret.rs:93
Methoddefault
()
src/request.rs:186
Methoddefault
()
src/runtime.rs:63
Methoddefault
()
src/lambda.rs:201
Functiondelgating_handler
c handler that utilizes ChannelHandler in order to pass information to the Handler implementation provided
src/runtime.rs:133
Methodflush
(&self)
src/log.rs:34
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/error.rs:86
Methodfrom
(opts: &InvokeOptions<C>)
src/lambda.rs:321
Methodfrom
(e: ffi::NulError)
src/error.rs:122
Methodfrom_code
(err_code: gg_error)
src/error.rs:63
Methodfrom_slice
(slice: &[u8])
examples/invoker.rs:97
Methodget_thing_shadow
(&self, thing_name: &str)
src/shadow.rs:55
Functiongg_delete_thing_shadow
noinspection DuplicatedCode
src/bindings.rs:581
Functiongg_delete_thing_shadow
stubs/src/greengrasssdk.c:97
Functiongg_get_secret_value
( ggreq: gg_request, secret_id: *const ::std::os::raw::c_char, version_id: *const ::st
src/bindings.rs:351
Functiongg_get_secret_value
stubs/src/greengrasssdk.c:49
Functiongg_get_thing_shadow
noinspection DuplicatedCode
src/bindings.rs:544
Functiongg_get_thing_shadow
stubs/src/greengrasssdk.c:91
next →1–100 of 180, ranked by callers