Struct cyfs_lib::NDNPutDataOutputRequest
source · [−]pub struct NDNPutDataOutputRequest {
pub common: NDNOutputRequestCommon,
pub object_id: ObjectId,
pub length: u64,
pub data: Box<dyn Read + Unpin + Send + Sync + 'static>,
}
Fields
common: NDNOutputRequestCommon
object_id: ObjectId
length: u64
data: Box<dyn Read + Unpin + Send + Sync + 'static>
Implementations
sourceimpl NDNPutDataOutputRequest
impl NDNPutDataOutputRequest
pub fn new(
level: NDNAPILevel,
object_id: ObjectId,
length: u64,
data: Box<dyn Read + Unpin + Send + Sync + 'static>
) -> Self
pub fn new_with_buffer(
level: NDNAPILevel,
object_id: ObjectId,
data: Vec<u8>
) -> Self
pub fn new_ndc(
object_id: ObjectId,
length: u64,
data: Box<dyn Read + Unpin + Send + Sync + 'static>
) -> Self
pub fn new_ndn(
target: Option<DeviceId>,
object_id: ObjectId,
length: u64,
data: Box<dyn Read + Unpin + Send + Sync + 'static>
) -> Self
pub fn new_router(
target: Option<ObjectId>,
object_id: ObjectId,
length: u64,
data: Box<dyn Read + Unpin + Send + Sync + 'static>
) -> Self
pub fn new_router_with_buffer(
target: Option<ObjectId>,
object_id: ObjectId,
data: Vec<u8>
) -> Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NDNPutDataOutputRequest
impl Send for NDNPutDataOutputRequest
impl Sync for NDNPutDataOutputRequest
impl Unpin for NDNPutDataOutputRequest
impl !UnwindSafe for NDNPutDataOutputRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more