Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4792786
deploy.rs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
deploy.rs
View Options
// -------------------------------------------------------------
// Alkane :: Deploy
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Project: Nasqueron
// License: BSD-2-Clause
// -------------------------------------------------------------
use
std
::
error
::
Error
;
use
std
::
fmt
::
{
Display
,
Formatter
};
// -------------------------------------------------------------
// Errors during our own workflow deployment
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/// Represents an error during the workflow to run a deployment
#[derive(Debug)]
pub
struct
AlkaneDeployError
{
pub
message
:
String
,
}
impl
Display
for
AlkaneDeployError
{
fn
fmt
(
&
self
,
f
:
&
mut
Formatter
<'
_
>
)
->
std
::
fmt
::
Result
{
write
!
(
f
,
"Alkane deploy error: {}"
,
self
.
message
)
}
}
impl
Error
for
AlkaneDeployError
{}
impl
AlkaneDeployError
{
pub
fn
new
<
S
>
(
message
:
S
)
->
Self
where
S
:
AsRef
<
str
>
,
{
Self
{
message
:
message
.
as_ref
().
to_string
(),
}
}
}
// -------------------------------------------------------------
// Errors that can occur during a deployment
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#[derive(Debug)]
pub
enum
DeployError
{
Alkane
(
AlkaneDeployError
),
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 21:05 (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447818
Default Alt Text
deploy.rs (1 KB)
Attached To
Mode
rALK Alkane
Attached
Detach File
Event Timeline
Log In to Comment