pub struct BlobCreatorProxy { /* private fields */ }Implementations§
Source§impl BlobCreatorProxy
impl BlobCreatorProxy
Sourcepub fn take_event_stream(&self) -> BlobCreatorEventStream
pub fn take_event_stream(&self) -> BlobCreatorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn create(
&self,
hash: &[u8; 32],
allow_existing: bool,
) -> QueryResponseFut<BlobCreatorCreateResult, FDomainResourceDialect>
pub fn create( &self, hash: &[u8; 32], allow_existing: bool, ) -> QueryResponseFut<BlobCreatorCreateResult, FDomainResourceDialect>
Creates a blob with the merkle root hash. If allow_existing is true, the server will
overwrite the existing blob if there is one. The server may fail this request with
[CreateBlobError.ALREADY_EXISTS] if there is already an inflight BlobWriter for the same
hash which has not been closed or completed. The client will truncate the blob with
[BlobWriter.GetVmo] and get a handle to a vmo in return. The client will then write blob
contents into the vmo and call [BlobWriter.BytesReady] on the ’writer` to signal to the
server that some number of bytes has been written to the vmo.
Sourcepub fn needs_overwrite(
&self,
blob_hash: &[u8; 32],
) -> QueryResponseFut<BlobCreatorNeedsOverwriteResult, FDomainResourceDialect>
pub fn needs_overwrite( &self, blob_hash: &[u8; 32], ) -> QueryResponseFut<BlobCreatorNeedsOverwriteResult, FDomainResourceDialect>
Given the hash of a blob, returns true if it should be overwritten using Create with
allow_existing set to true. Must respond the same as BlobReader.GetVmo in terms of
existence checks, responding ZX_ERR_NOT_FOUND under the same conditions.
Trait Implementations§
Source§impl BlobCreatorProxyInterface for BlobCreatorProxy
impl BlobCreatorProxyInterface for BlobCreatorProxy
type CreateResponseFut = QueryResponseFut<Result<ClientEnd<BlobWriterMarker>, CreateBlobError>, FDomainResourceDialect>
type NeedsOverwriteResponseFut = QueryResponseFut<Result<bool, i32>, FDomainResourceDialect>
fn create( &self, hash: &[u8; 32], allow_existing: bool, ) -> Self::CreateResponseFut
fn needs_overwrite( &self, blob_hash: &[u8; 32], ) -> Self::NeedsOverwriteResponseFut
Source§impl Clone for BlobCreatorProxy
impl Clone for BlobCreatorProxy
Source§fn clone(&self) -> BlobCreatorProxy
fn clone(&self) -> BlobCreatorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlobCreatorProxy
impl Debug for BlobCreatorProxy
Source§impl Proxy for BlobCreatorProxy
impl Proxy for BlobCreatorProxy
Source§type Protocol = BlobCreatorMarker
type Protocol = BlobCreatorMarker
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Source§fn domain(&self) -> Arc<Client>
fn domain(&self) -> Arc<Client>
Source§fn on_closed(&self) -> OnFDomainSignals
fn on_closed(&self) -> OnFDomainSignals
PEER_CLOSED signal.Auto Trait Implementations§
impl Freeze for BlobCreatorProxy
impl !RefUnwindSafe for BlobCreatorProxy
impl Send for BlobCreatorProxy
impl Sync for BlobCreatorProxy
impl Unpin for BlobCreatorProxy
impl UnsafeUnpin for BlobCreatorProxy
impl !UnwindSafe for BlobCreatorProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]