pub struct SetuRequest {
pub peer: PeerId,
pub context: Option<SetuContext>,
pub operation: SetuOperation,
}Expand description
Входящий запрос на операцию.
Запрос уже принят: чтобы выполнить операцию, нужно вызвать
operation.commit(&set); чтобы отказаться — уничтожить operation.
Fields§
§peer: PeerIdУзел, приславший запрос.
context: Option<SetuContext>Сообщение, которым вторая сторона сопроводила запрос.
operation: SetuOperationОперация, готовая к запуску.
Auto Trait Implementations§
impl !RefUnwindSafe for SetuRequest
impl !UnwindSafe for SetuRequest
impl Freeze for SetuRequest
impl Send for SetuRequest
impl Sync for SetuRequest
impl Unpin for SetuRequest
impl UnsafeUnpin for SetuRequest
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