pub struct PrintFdHandle {
pub fd: OwnedFd,
pub job_id: String,
pub socket_path: Option<String>,
}Expand description
Handle returned by Printer::print_fd.
The caller writes the document data to PrintFdHandle::fd and then
drops the handle to close it.
Fields§
§fd: OwnedFdA writable file descriptor that consumes the print job data.
job_id: StringThe backend-assigned job ID, or an empty string when not provided.
socket_path: Option<String>Optional auxiliary socket path the backend may return.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrintFdHandle
impl RefUnwindSafe for PrintFdHandle
impl Send for PrintFdHandle
impl Sync for PrintFdHandle
impl Unpin for PrintFdHandle
impl UnsafeUnpin for PrintFdHandle
impl UnwindSafe for PrintFdHandle
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