pub struct Response {
pub handle: i32,
pub blob_id: u64,
pub data: Vec<u8>,
pub status: StatusVector,
}Expand description
Um pacote op_response analisado (P_RESP).
Fields§
§handle: i32Id do objeto / handle retornado pela operação (p_resp_object).
blob_id: u64Id do blob (p_resp_blob_id), significativo apenas para operações de blob.
data: Vec<u8>Carga de dados variável (p_resp_data).
status: StatusVectorO vetor de status; pode carregar avisos mesmo em caso de sucesso.
Implementations§
Source§impl Response
impl Response
Sourcepub fn into_result(self) -> Result<Response>
pub fn into_result(self) -> Result<Response>
Transforma um vetor de status que carrega erro em Error::Database; caso contrário
produz a resposta (os avisos são mantidos em status).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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