pub struct CreateContextRequest {
pub name: Vec<u8>,
pub data: CreateContextRequestData,
}Expand description
The common definition that wrap around all create contexts, for both request and response. Create contexts are used to pass additional information to the server or receive additional information from the server in the CREATE request and response.
This is meant to be used within a ChainedItemList<T>!
Reference: MS-SMB2 2.2.13, 2.2.14
Fields§
§name: Vec<u8>The name of the create context
data: CreateContextRequestDataThe data payload of the create context
Trait Implementations§
Source§impl BinRead for CreateContextRequest
impl BinRead for CreateContextRequest
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for CreateContextRequest
impl BinWrite for CreateContextRequest
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for CreateContextRequest
impl Debug for CreateContextRequest
Source§impl From<AllocationSize> for CreateContextRequest
impl From<AllocationSize> for CreateContextRequest
Source§fn from(req: AllocationSize) -> Self
fn from(req: AllocationSize) -> Self
Converts to this type from the input type.
Source§impl From<AppInstanceId> for CreateContextRequest
impl From<AppInstanceId> for CreateContextRequest
Source§fn from(req: AppInstanceId) -> Self
fn from(req: AppInstanceId) -> Self
Converts to this type from the input type.
Source§impl From<AppInstanceVersion> for CreateContextRequest
impl From<AppInstanceVersion> for CreateContextRequest
Source§fn from(req: AppInstanceVersion) -> Self
fn from(req: AppInstanceVersion) -> Self
Converts to this type from the input type.
Source§impl From<ChainedItemList<ChainedItemList<FileFullEaInformationInner, 4>>> for CreateContextRequest
impl From<ChainedItemList<ChainedItemList<FileFullEaInformationInner, 4>>> for CreateContextRequest
Source§fn from(req: ChainedItemList<FileFullEaInformation>) -> Self
fn from(req: ChainedItemList<FileFullEaInformation>) -> Self
Converts to this type from the input type.
Source§impl From<DurableHandleReconnect> for CreateContextRequest
impl From<DurableHandleReconnect> for CreateContextRequest
Source§fn from(req: DurableHandleReconnect) -> Self
fn from(req: DurableHandleReconnect) -> Self
Converts to this type from the input type.
Source§impl From<DurableHandleReconnectV2> for CreateContextRequest
impl From<DurableHandleReconnectV2> for CreateContextRequest
Source§fn from(req: DurableHandleReconnectV2) -> Self
fn from(req: DurableHandleReconnectV2) -> Self
Converts to this type from the input type.
Source§impl From<DurableHandleRequest> for CreateContextRequest
impl From<DurableHandleRequest> for CreateContextRequest
Source§fn from(req: DurableHandleRequest) -> Self
fn from(req: DurableHandleRequest) -> Self
Converts to this type from the input type.
Source§impl From<DurableHandleRequestV2> for CreateContextRequest
impl From<DurableHandleRequestV2> for CreateContextRequest
Source§fn from(req: DurableHandleRequestV2) -> Self
fn from(req: DurableHandleRequestV2) -> Self
Converts to this type from the input type.
Source§impl From<QueryMaximalAccessRequest> for CreateContextRequest
impl From<QueryMaximalAccessRequest> for CreateContextRequest
Source§fn from(req: QueryMaximalAccessRequest) -> Self
fn from(req: QueryMaximalAccessRequest) -> Self
Converts to this type from the input type.
Source§impl From<QueryOnDiskIdReq> for CreateContextRequest
impl From<QueryOnDiskIdReq> for CreateContextRequest
Source§fn from(req: QueryOnDiskIdReq) -> Self
fn from(req: QueryOnDiskIdReq) -> Self
Converts to this type from the input type.
Source§impl From<RequestLease> for CreateContextRequest
impl From<RequestLease> for CreateContextRequest
Source§fn from(req: RequestLease) -> Self
fn from(req: RequestLease) -> Self
Converts to this type from the input type.
Source§impl From<SecurityDescriptor> for CreateContextRequest
impl From<SecurityDescriptor> for CreateContextRequest
Source§fn from(req: SecurityDescriptor) -> Self
fn from(req: SecurityDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<SvhdxOpenDeviceContext> for CreateContextRequest
impl From<SvhdxOpenDeviceContext> for CreateContextRequest
Source§fn from(req: SvhdxOpenDeviceContext) -> Self
fn from(req: SvhdxOpenDeviceContext) -> Self
Converts to this type from the input type.
Source§impl From<TimewarpToken> for CreateContextRequest
impl From<TimewarpToken> for CreateContextRequest
Source§fn from(req: TimewarpToken) -> Self
fn from(req: TimewarpToken) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CreateContextRequest
impl PartialEq for CreateContextRequest
Source§impl TryInto<AllocationSize> for CreateContextRequest
impl TryInto<AllocationSize> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<AllocationSize, SmbMsgError>
fn try_into(self) -> Result<AllocationSize, SmbMsgError>
Performs the conversion.
Source§impl TryInto<AppInstanceId> for CreateContextRequest
impl TryInto<AppInstanceId> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<AppInstanceId, SmbMsgError>
fn try_into(self) -> Result<AppInstanceId, SmbMsgError>
Performs the conversion.
Source§impl TryInto<AppInstanceVersion> for CreateContextRequest
impl TryInto<AppInstanceVersion> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<AppInstanceVersion, SmbMsgError>
fn try_into(self) -> Result<AppInstanceVersion, SmbMsgError>
Performs the conversion.
Source§impl TryInto<ChainedItemList<ChainedItemList<FileFullEaInformationInner, 4>>> for CreateContextRequest
impl TryInto<ChainedItemList<ChainedItemList<FileFullEaInformationInner, 4>>> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<ChainedItemList<FileFullEaInformation>, SmbMsgError>
fn try_into(self) -> Result<ChainedItemList<FileFullEaInformation>, SmbMsgError>
Performs the conversion.
Source§impl TryInto<DurableHandleReconnect> for CreateContextRequest
impl TryInto<DurableHandleReconnect> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<DurableHandleReconnect, SmbMsgError>
fn try_into(self) -> Result<DurableHandleReconnect, SmbMsgError>
Performs the conversion.
Source§impl TryInto<DurableHandleReconnectV2> for CreateContextRequest
impl TryInto<DurableHandleReconnectV2> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<DurableHandleReconnectV2, SmbMsgError>
fn try_into(self) -> Result<DurableHandleReconnectV2, SmbMsgError>
Performs the conversion.
Source§impl TryInto<DurableHandleRequest> for CreateContextRequest
impl TryInto<DurableHandleRequest> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<DurableHandleRequest, SmbMsgError>
fn try_into(self) -> Result<DurableHandleRequest, SmbMsgError>
Performs the conversion.
Source§impl TryInto<DurableHandleRequestV2> for CreateContextRequest
impl TryInto<DurableHandleRequestV2> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<DurableHandleRequestV2, SmbMsgError>
fn try_into(self) -> Result<DurableHandleRequestV2, SmbMsgError>
Performs the conversion.
Source§impl TryInto<QueryMaximalAccessRequest> for CreateContextRequest
impl TryInto<QueryMaximalAccessRequest> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<QueryMaximalAccessRequest, SmbMsgError>
fn try_into(self) -> Result<QueryMaximalAccessRequest, SmbMsgError>
Performs the conversion.
Source§impl TryInto<QueryOnDiskIdReq> for CreateContextRequest
impl TryInto<QueryOnDiskIdReq> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<QueryOnDiskIdReq, SmbMsgError>
fn try_into(self) -> Result<QueryOnDiskIdReq, SmbMsgError>
Performs the conversion.
Source§impl TryInto<RequestLease> for CreateContextRequest
impl TryInto<RequestLease> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<RequestLease, SmbMsgError>
fn try_into(self) -> Result<RequestLease, SmbMsgError>
Performs the conversion.
Source§impl TryInto<SecurityDescriptor> for CreateContextRequest
impl TryInto<SecurityDescriptor> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<SecurityDescriptor, SmbMsgError>
fn try_into(self) -> Result<SecurityDescriptor, SmbMsgError>
Performs the conversion.
Source§impl TryInto<SvhdxOpenDeviceContext> for CreateContextRequest
impl TryInto<SvhdxOpenDeviceContext> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<SvhdxOpenDeviceContext, SmbMsgError>
fn try_into(self) -> Result<SvhdxOpenDeviceContext, SmbMsgError>
Performs the conversion.
Source§impl TryInto<TimewarpToken> for CreateContextRequest
impl TryInto<TimewarpToken> for CreateContextRequest
Source§type Error = SmbMsgError
type Error = SmbMsgError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<TimewarpToken, SmbMsgError>
fn try_into(self) -> Result<TimewarpToken, SmbMsgError>
Performs the conversion.
impl Eq for CreateContextRequest
impl StructuralPartialEq for CreateContextRequest
Auto Trait Implementations§
impl Freeze for CreateContextRequest
impl RefUnwindSafe for CreateContextRequest
impl Send for CreateContextRequest
impl Sync for CreateContextRequest
impl Unpin for CreateContextRequest
impl UnwindSafe for CreateContextRequest
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