pub enum Direction {
Upload,
Download,
}Expand description
Which Init started the transfer, and so which end sends the data.
Variants§
Upload
SendInit: the Initiator is the Sender (§11.22.2.3).
Download
ReceiveInit: the Initiator is the Receiver — an OTA image, a diagnostic log.
Implementations§
Source§impl Direction
impl Direction
Sourcepub const fn init(self) -> MessageType
pub const fn init(self) -> MessageType
The opcode that opens the transfer.
Sourcepub const fn accept(self) -> MessageType
pub const fn accept(self) -> MessageType
The opcode that accepts it.
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Forget for Direction
impl Freeze for Direction
impl Move for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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