Struct SetRoutes
pub struct SetRoutes<'a> {
routes: Prefixed<u16, &'a [Route]>,
transfer_indication: Option<TransferIndication>,
}Expand description
Writes the routing table (QMI_WMS_SET_ROUTES).
The table is global for all clients of the modem.
Fields§
§routes: Prefixed<u16, &'a [Route]>§transfer_indication: Option<TransferIndication>Implementations§
§impl<'a> SetRoutes<'a>
impl<'a> SetRoutes<'a>
pub fn new(
routes: &'a [Route],
transfer_indication: Option<TransferIndication>,
) -> Result<Self, Error>
pub fn new( routes: &'a [Route], transfer_indication: Option<TransferIndication>, ) -> Result<Self, Error>
Creates the request. transfer_indication sets where status reports
go. With None the request doesn’t include it.
§Errors
Returns Error::TooManyRoutes if there are more than Self::MAX
routes.
pub const fn transfer_indication(&self) -> Option<TransferIndication>
pub const fn transfer_indication(&self) -> Option<TransferIndication>
Returns where status reports go.
Trait Implementations§
impl<'a> Copy for SetRoutes<'a>
impl<'a> Eq for SetRoutes<'a>
§impl Request for SetRoutes<'_>
impl Request for SetRoutes<'_>
impl<'a> StructuralPartialEq for SetRoutes<'a>
Auto Trait Implementations§
impl<'a> Freeze for SetRoutes<'a>
impl<'a> RefUnwindSafe for SetRoutes<'a>
impl<'a> Send for SetRoutes<'a>
impl<'a> Sync for SetRoutes<'a>
impl<'a> Unpin for SetRoutes<'a>
impl<'a> UnsafeUnpin for SetRoutes<'a>
impl<'a> UnwindSafe for SetRoutes<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more