pub struct StarlaneApi { /* private fields */ }
Implementations§
Source§impl StarlaneApi
impl StarlaneApi
pub async fn create_artifact_bundle( &self, path: &ResourcePath, data: Arc<Vec<u8>>, ) -> Result<ArtifactBundleApi, Error>
Source§impl StarlaneApi
impl StarlaneApi
pub fn new(surface_api: SurfaceApi) -> Self
pub fn with_starlane_ctrl( surface_api: SurfaceApi, starlane_tx: Sender<StarlaneCommand>, ) -> Self
pub async fn to_key( &self, identifier: ResourceIdentifier, ) -> Result<ResourceKey, Error>
pub fn shutdown(&self) -> Result<(), Error>
pub async fn send( &self, message: Message<ResourcePortMessage>, description: &str, ) -> Result<Reply, Error>
pub async fn timeout<T>(rx: Receiver<Result<T, Error>>) -> Result<T, Error>
pub async fn fetch_resource_address( &self, key: ResourceKey, ) -> Result<ResourcePath, Error>
pub async fn fetch_resource_key( &self, address: ResourcePath, ) -> Result<ResourceKey, Error>
pub async fn fetch_resource_record( &self, identifier: ResourceIdentifier, ) -> Result<ResourceRecord, Error>
pub async fn get_caches(&self) -> Result<Arc<ProtoArtifactCachesFactory>, Error>
pub async fn create_resource( &self, create: ResourceCreate, ) -> Result<ResourceRecord, Error>
pub async fn select( &self, parent_resource: &ResourceIdentifier, selector: ResourceSelector, ) -> Result<Vec<ResourceRecord>, Error>
pub async fn select_values( &self, path: ResourcePath, selector: ResourcePropertyValueSelector, ) -> Result<ResourceValues<ResourceStub>, Error>
pub async fn watch( &self, selector: WatchResourceSelector, ) -> Result<Watcher, Error>
pub async fn list( &self, identifier: &ResourceIdentifier, ) -> Result<Vec<ResourceRecord>, Error>
pub async fn create_api<API>(
&self,
create: ResourceCreate,
) -> Result<API, Error>where
API: TryFrom<ResourceApi>,
pub async fn get_resource_state( &self, identifier: ResourceIdentifier, ) -> Result<DataSet<BinSrc>, Error>
pub async fn get_resource_state_src( &self, identifier: ResourceIdentifier, ) -> Result<DataSet<BinSrc>, Error>
pub fn create_space( &self, name: &str, display_name: &str, ) -> Result<Creation<SpaceApi>, Error>
pub async fn get_space( &self, identifier: ResourceIdentifier, ) -> Result<SpaceApi, Error>
Trait Implementations§
Source§impl Clone for StarlaneApi
impl Clone for StarlaneApi
Source§fn clone(&self) -> StarlaneApi
fn clone(&self) -> StarlaneApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<StarlaneApi> for ArtifactBundleSrc
impl From<StarlaneApi> for ArtifactBundleSrc
Source§fn from(api: StarlaneApi) -> Self
fn from(api: StarlaneApi) -> Self
Converts to this type from the input type.
Source§impl Into<StarlaneApiRelay> for StarlaneApi
impl Into<StarlaneApiRelay> for StarlaneApi
Source§fn into(self) -> StarlaneApiRelay
fn into(self) -> StarlaneApiRelay
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for StarlaneApi
impl RefUnwindSafe for StarlaneApi
impl Send for StarlaneApi
impl Sync for StarlaneApi
impl Unpin for StarlaneApi
impl UnwindSafe for StarlaneApi
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref