pub enum DatasetRequest {
GetActiveTlvs {
responder: DatasetGetActiveTlvsResponder,
},
SetActiveTlvs {
dataset: Vec<u8>,
responder: DatasetSetActiveTlvsResponder,
},
AttachAllNodesTo {
dataset: Vec<u8>,
responder: DatasetAttachAllNodesToResponder,
},
}
Expand description
Thread Operational Dataset Protocol.
This protocol can expose PII.
This protocol provides methods related to the management of the Thread operational dataset in raw TLV form.
Variants§
GetActiveTlvs
Fetches and returns the active Thread operational dataset in raw
TLV form. Functionally equivalent to otDatasetGetActiveTlvs()
.
This method returns the active dataset, or nothing in the case that there is no active operational dataset.
Any error that prevents the operation from completing successfully will result in the protocol being closed.
Fields
responder: DatasetGetActiveTlvsResponder
SetActiveTlvs
Sets the active Thread Operational Dataset in raw TLV form.
Functionally equivalent to otDatasetSetActiveTlvs()
.
This method returns once the operation has completed successfully.
Any error that prevents the operation from completing successfully will result in the protocol being closed.
AttachAllNodesTo
Requests that all nodes on the current network attach to the thread network described by given dataset. Returns the number of milliseconds until the change takes effect.
Functionally equivalent to ot-br-posix
’s AttachAllNodesTo
.
If this device is not currently provisioned, then calling this method
is equivalent to calling [SetActiveTlvs()
].
The transition of all nodes to the new network may take as long as five minutes. The exact amount of time until the network is transitioned is returned by this method.
This method returns once the transition has been scheduled successfully. Any error that prevents the scheduling of this operation from completing successfully (such as being provided with an incomplete dataset) will result in the protocol being closed.
Implementations§
Source§impl DatasetRequest
impl DatasetRequest
pub fn into_get_active_tlvs(self) -> Option<DatasetGetActiveTlvsResponder>
pub fn into_set_active_tlvs( self, ) -> Option<(Vec<u8>, DatasetSetActiveTlvsResponder)>
pub fn into_attach_all_nodes_to( self, ) -> Option<(Vec<u8>, DatasetAttachAllNodesToResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL