pub enum PayloadKind {
JobSource(IppJobSource),
ReceivedData(NamedTempFile),
}Expand description
Payload type inside the IppRequestResponse
Variants§
JobSource(IppJobSource)
Job source for client side
ReceivedData(NamedTempFile)
Received data for server side
Implementations§
Source§impl PayloadKind
impl PayloadKind
Sourcepub fn as_jobsource(&self) -> Option<&IppJobSource>
pub fn as_jobsource(&self) -> Option<&IppJobSource>
Optionally returns references to the inner fields if this is a PayloadKind::JobSource, otherwise None
Sourcepub fn as_receiveddata(&self) -> Option<&NamedTempFile>
pub fn as_receiveddata(&self) -> Option<&NamedTempFile>
Optionally returns references to the inner fields if this is a PayloadKind::ReceivedData, otherwise None
Auto Trait Implementations§
impl Freeze for PayloadKind
impl !RefUnwindSafe for PayloadKind
impl Send for PayloadKind
impl !Sync for PayloadKind
impl Unpin for PayloadKind
impl !UnwindSafe for PayloadKind
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