pub enum OperationRequest {
SendPackets(Vec<ResponsePacket>),
GetApplicationInfo(HeaderSet),
GetApplicationData(HeaderSet),
PutApplicationData(Vec<u8>, HeaderSet),
DeleteApplicationData(HeaderSet),
None,
}
Expand description
Represents a request to be handled by the OBEX Server during a multi-step operation.
Variants§
SendPackets(Vec<ResponsePacket>)
Request to send response packets to the remote peer.
GetApplicationInfo(HeaderSet)
Request to get informational headers describing a payload from the upper layer application – occurs in a GET operation.
GetApplicationData(HeaderSet)
Request to get the payload from the upper layer application – occurs in a GET operation.
PutApplicationData(Vec<u8>, HeaderSet)
Request to give the payload to the upper layer application – occurs in a PUT operation.
DeleteApplicationData(HeaderSet)
Request to delete the payload in the upper layer application – occurs in a PUT operation.
None
No action needed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationRequest
impl RefUnwindSafe for OperationRequest
impl Send for OperationRequest
impl Sync for OperationRequest
impl Unpin for OperationRequest
impl UnwindSafe for OperationRequest
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